import logo from './logo.svg';
import './App.css';
import { Route, Redirect, Switch } from 'react-router';
import NotFound404 from './views/404/NotFound404';
import Login from './views/Login/Login';
import MenZhen from './views/MenZhen/MenZhen';
import ZhuYuan from './views/ZhuYuan/ZhuYuan';

function App() {
  return (
   <div className="App">
      <Switch>
        <Route path="/login" component={Login}></Route>
        <Route path="/zy" component={ZhuYuan}></Route>
        <Route path="/mz" component={MenZhen}></Route>
        <Route path="/404" component={NotFound404}></Route>
        <Route path="/" exact component={Login}></Route>
        <Redirect to="/404" />
      </Switch>
    </div>
  );
}

export default App;
